home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / msysjour / vol04 / 01b / sleuth / sleuth.h < prev    next >
C/C++ Source or Header  |  1988-10-04  |  3KB  |  98 lines

  1. /*-----------------------------------------------------------------*/
  2. /* Sleuth.h                                                        */
  3. /*-----------------------------------------------------------------*/
  4.  
  5. /*-----------------------------------------------------------------*/
  6. /* Macros for things that really should be in PMWIN.H              */
  7. /*-----------------------------------------------------------------*/
  8.  
  9. #define WinMapWindowRect( hwndFrom, hwndTo, prcl )  \
  10.     WinMapWindowPoints( (hwndFrom), (hwndTo), (PPOINTL)(prcl), 2 )
  11.  
  12. #define WinQueryWindowPtr( hwnd, index )  \
  13.     ( (PVOID)WinQueryWindowULong( (hwnd), (index) ) )
  14.  
  15. /*-----------------------------------------------------------------*/
  16. /* Typedefs and Mac vs. PM stuff.                                  */
  17. /*-----------------------------------------------------------------*/
  18.  
  19. typedef unsigned int FLAG;
  20.  
  21. #define LOCAL
  22.  
  23. #ifdef PM_MACINTOSH
  24. #define CDECL
  25. #else
  26. #define CDECL cdecl
  27. #endif
  28.  
  29. /*-----------------------------------------------------------------*/
  30. /* Menu command definitions.  Note that to be compatible with the  */
  31. /* Mac, these are not just arbitrary values, but are determined by */
  32. /* the menu position.  The high-order byte is the resource ID for  */
  33. /* the Mac's menu resource, and the low-order byte is the position */
  34. /* in the pulldown menu.                                           */
  35. /*-----------------------------------------------------------------*/
  36.  
  37. #if 0
  38.  
  39. #define CMD_SLEUTH  32768   /* 0x8000 */
  40.  
  41. #define CMD_ABOUT   32769   /* 0x8001 */
  42.  
  43. #define CMD_LOOK    33025   /* 0x8101 */
  44. #define CMD_EXPAND  33026   /* 0x8102 */
  45. #define CMD_EXIT    33028   /* 0x8104 */
  46.  
  47. #define CMD_UNDO    33281   /* 0x8201 */
  48. #define CMD_CUT     33283   /* 0x8203 */
  49. #define CMD_COPY    33284   /* 0x8204 */
  50. #define CMD_PASTE   33285   /* 0x8205 */
  51. #define CMD_CLEAR   33286   /* 0x8206 */
  52.  
  53. #else
  54.  
  55. #define CMD_SLEUTH  0x8000
  56.  
  57. #define CMD_ABOUT   0x8001
  58.  
  59. #define CMD_LOOK    0x8101
  60. #define CMD_EXPAND  0x8102
  61. #define CMD_EXIT    0x8104
  62.  
  63. #define CMD_UNDO    0x8201
  64. #define CMD_CUT     0x8203
  65. #define CMD_COPY    0x8204
  66. #define CMD_PASTE   0x8205
  67. #define CMD_CLEAR   0x8206
  68.  
  69. #endif
  70.  
  71. /*-----------------------------------------------------------------*/
  72. /* String table ID numbers.                                        */
  73. /*-----------------------------------------------------------------*/
  74.  
  75. #define IDS_CLASS   1
  76. #define IDS_TITLE   2
  77.  
  78. /*-----------------------------------------------------------------*/
  79. /* Dialog ID numbers.                                              */
  80. /*-----------------------------------------------------------------*/
  81.  
  82. #define ABOUTBOX    1
  83.  
  84. /*-----------------------------------------------------------------*/
  85. /* Window ID's                                                     */
  86. /*-----------------------------------------------------------------*/
  87.  
  88. #define ID_SLEUTH     128   /* 0x80 */
  89.  
  90. /*-----------------------------------------------------------------*/
  91. /* Additional scroll bar message options that we use internally.   */
  92. /*-----------------------------------------------------------------*/
  93.  
  94. #define SBX_TOP       0xF00D
  95. #define SBX_BOTTOM    0xF00E
  96.  
  97. /*-----------------------------------------------------------------*/
  98.